package com.ndp.fb.rdb.model;

import com.ndp.fb.rdb.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * Created by Evan on 2016/4/14.
 */
@Setter
@Getter
@NoArgsConstructor
@Table("product_we_feed")
public class FeedWe implements Serializable {
    @Id
    private Long id;

    @Column(value = "org_id")
    private Long orgId;

    @Column(value = "user_id")
    private String userId;

    @Column(value = "product_feed_name")                //feed名称
    private String feedName;

    @Column
    private String country;                             //国家 FB默认US

    @Column(value = "product_id")
    private Long productId;                             //产品id 对应product_manage中product_id

    @Column(value = "product_name")
    private String productName;

    @Column
    private String currency;                            //货币

    @Column(value = "product_count")
    private Integer productCnt;                         //商品数量

    @Column(value = "fb_business_id")
    private Long bmId;                                  //BM id

    @Column(value = "schedule_interval")
    private String interval;                            //FB拉取执行间隔

    @Column(value = "schedule_day_of_week")
    private String dayOfWeek;                           //FB拉取 如果是每周的话 会有这个字段周几

    @Column(value = "schedule_hour")
    private Integer hour;                               //FB拉取 执行时间点

    @Column(value = "origin_urls")
    private String originUrls;                          //json字符串存入字段

    @Column(value = "schedule_url")
    private String feedUrl;                             //用户输入的多个url merge后生成的

    @Column(value = "utm_source")
    private String utmSource;

    @Column(value = "utm_medium")
    private String utmMedium;

    @Column(value = "utm_term")
    private String utmTerm;

    @Column(value = "utm_content")
    private String utmContent;

    @Column(value = "utm_campaign")
    private String utmCampaign;

    @Column(value = "utm_custom")
    private String utmCustom;

    @Column(value = "xml_check_error")
    private String xmlCheckError;                        //我们系统对 用户输入的xml校验错误信息

    @Column(value = "operate_status")
    private String operateStatus;                        //操作状态  对应枚举类 FeedWeCreatingStatus

    @Column(value = "create_time")
    private Long createTime;                             //we feed创建时间戳

    @Column(value = "update_time")
    private Long updateTime;                             //we feed更新时间戳

    @Column(value = "update_day")
    private String updateDay;                            //giser

    @Column(value = "promoted_website")
    private String promotedWebsite;                     //推广网址

    @NoSave
    private String nickName;

}
